package longcaisuyun.longcai.com.net;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;
import com.zcx.helper.util.UtilMD5;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/27.
 */
@HttpInlet(Net.TAKEMONEY)
public class PostTakeMoney extends WHAsyPost<PostTakeMoney.Info> {
    //    driverid	司机id
//    money	提现金额
//    paypwd	支付密码
//    bankid
    public String driverid;
    public String money;
    public String paypwd;
    public String bankid;

    public PostTakeMoney(String driverid, String money, String paypwd, String bankid, AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.driverid = driverid;
        this.money = money;
        this.paypwd = UtilMD5.MD5EncodeCount(paypwd, "", 2);
        this.bankid = bankid;
    }

    @Override
    protected Info parser(JSONObject object) {
        Info   info=new Info();
        try {
            info.message=object.getString("message");
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return info;
    }

    public static class Info {
        public   String  message;
    }
}
